<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * View file: index
 *
 * @author luubk
 * @since 10-06-2012 - 13:59:39
 */
?>
<article class="module width_full">
    <header>
        <h3><?php echo $title ?></h3>
    </header>
    <table class="tablesorter" cellspacing="0">
        <thead>
            <tr>
                <th>ID</th>
                <th>Tên tài khoản</th>
                <th>Email</th>
                <th>Nhóm</th>
                <th>Ngày cập nhật</th>
                <th>Ngày tạo</th>
                <th>Trạng thái</th>
                <th>Xử lý</th>
            </tr>
        </thead>
        <tbody>
            <?php if ($items): ?>
                <?php foreach ($items as $item): ?>
                    <tr>
                        <td><?php echo $item['u_id'] ?></td>
                        <td><?php echo $item['u_name'] ?></td>
                        <td><?php echo $item['u_email'] ?></td>
                       	<td><?php echo $item['u_groups'] ?></td>
                        <td><?php echo date('Y-m-d H:i:s', $item['u_updated']) ?></td>
                        <td><?php echo date('Y-m-d H:i:s', $item['u_created']) ?></td>
                        <td><?php echo status_text($item['u_status']) ?></td>
                        <td>
                            <?php echo edit_text('user/form/' . $item['u_id']) ?>
                            <?php echo delete_text('user/delete/' . $item['u_id']) ?>
                        </td>
                    </tr>
                <?php endforeach; ?>
            <?php else: ?>
                <tr>
                    <td colspan="5">Không có dữ liệu</td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>


</article><!-- end of content manager article -->